package com.ruoyi.project.mapper;

import java.util.List;
import com.ruoyi.project.domain.ProjectResearch;

/**
 * 科研项目Mapper接口
 * 
 * @author czj
 * @date 2025-01-06
 */
public interface ProjectResearchMapper 
{
    /**
     * 查询科研项目
     * 
     * @param projectId 科研项目主键
     * @return 科研项目
     */
    public ProjectResearch selectProjectResearchByProjectId(Long projectId);

    /**
     * 查询科研项目列表
     * 
     * @param projectResearch 科研项目
     * @return 科研项目集合
     */
    public List<ProjectResearch> selectProjectResearchList(ProjectResearch projectResearch);

    /**
     * 新增科研项目
     * 
     * @param projectResearch 科研项目
     * @return 结果
     */
    public int insertProjectResearch(ProjectResearch projectResearch);

    /**
     * 修改科研项目
     * 
     * @param projectResearch 科研项目
     * @return 结果
     */
    public int updateProjectResearch(ProjectResearch projectResearch);

    /**
     * 删除科研项目
     * 
     * @param projectId 科研项目主键
     * @return 结果
     */
    public int deleteProjectResearchByProjectId(Long projectId);

    /**
     * 批量删除科研项目
     * 
     * @param projectIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectResearchByProjectIds(Long[] projectIds);

    /**
     * 添加溯源数据
     *
     * @param projectResearch
     * @return
     */
    public int insertProjectResearchTrack(ProjectResearch projectResearch);

    /**
     * 查找对应数据历史
     *
     * @param projectId
     * @return
     */
    public List<ProjectResearch> selectProjectResearchTrackList(Long projectId);

    /**
     * 科研项目数据回溯
     *
     * @param projectResearch
     * @return
     */
    public int trackBackProjectResearch(ProjectResearch projectResearch);
}
